import service from '@/utils/request'

const PrinterApi = {
  // ---------------打印机----------------
  addPrinter: function (data) {
    return service.post('printer', data)
  },
  deletePrinter: function (data) {
    return service.put('printer/delete', data)
  },
  editPrinter: function (data) {
    return service.put('printer', data)
  },
  listPrinter: function (data) {
    return service.get('printer/page', {params: data })
  },
  getPrinterInfo: function (data) {
    return service.get('printer', {params: data })
  },
  activeEquip:function(data){
    return service.get("printer/active",{params:data})
  },
}

export default PrinterApi